from django.urls import path, re_path
from s_server import views

"""
http://127.0.0.1:18080/s_server/get_stp_infos/
"""
urlpatterns = [
    re_path('get_code_infos/$', views.GetCodeInfos.as_view()),
    re_path('codes/$', views.CodesView.as_view({'get': 'list'})),
    re_path('code_data_exist_and_has_last/$', views.CodeDataHasLastView.as_view()),
    re_path('get_stp_infos/$', views.GetSTPInfos.as_view()),
    # re_path('get_abpq_infos/$', views.GetABPQInfos.as_view()),
    re_path('moni/$', views.Moni.as_view()),
    # http://127.0.0.1:18080/s_server/get_st_days_for_moni/?code=300686&his_day_size=120&moni_day_size=60&random=1&random_size=300
    re_path('get_st_days_for_moni/$', views.GetSTDaysForMoni.as_view()),
    re_path('moni_custom_days/$', views.MoniCustomDays.as_view()),
    re_path('moni_custom_days_not_write/$', views.MoniCustomDaysNotWrite.as_view()),


]
